package hy.config;

import hy.beans.Dog;
import hy.beans.Product;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;


@AutoConfigureAfter(UFirst.class)
public class Second {

    {
        System.out.println("this is second config");
    }

    @Bean
    public Dog getDog(Product p){
        return new Dog();
    }
}
